//
//  Node+CoreDataClass.m
//  
//
//  Created by Mac_Black_Mini on 2025/9/4.
//
//

#import "Node+CoreDataClass.h"

@implementation Node
+ (NSDictionary *)mj_replacedKeyFromPropertyName {
    return @{
        @"hash1": @"hash"
    };
}

- (NSDictionary *)nodeInfo {
    return @{
        @"uuid": self.hash1,
        @"flow": self.flow,
        @"tag": @"TestVL",
        @"packet_encoding": @"xudp",
        @"tls": @{
            @"server_name": self.sni,
            @"insecure": @NO,
            @"enabled": @YES,
            @"reality": @{
                @"enabled": @YES,
                @"short_id": self.short_id,
                @"public_key": self.public_key
            },
            @"utls": @{
                @"fingerprint": self.fingerprint,
                @"enabled": @YES
            }
        },
        @"server_port": @(self.port.integerValue),
        @"server": self.server,
        @"type": @"vless"
    };
}
@end
